<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $html->charset(); ?>

	<title>
		Enruta Colombia <?php echo $title_for_layout; ?>
	</title>
        <meta name="author" content="lgrodriguez.net"/>
        <meta name="GOOGLEBOT" content="NOARCHIVE"/>
        <meta name="Keywords" content="Directorio empresarial, empresas, sector salud, Inmobiliarias, Colombia" />
	<meta name="description" content="" />
        <meta name="Rating" content="General" />
        <meta name="Distribution" content="Global"/>
        <meta name="robots" content="all"/>
        <meta http-equiv="expires" content="0"/>
        
        <!-- codigos de verificacion -->
        <meta name="verify-v1" content="VdvUOduzw/Uh5aF+aBYSOKGvmyjd4rW0eSELtC8WVOo=" />
        <meta name="msvalidate.01" content="3911FE4EA1B38BBA086E598609979976" />
        <meta name="y_key" content="0c3d2f929860cf8b"/>
	<?php
		echo $html->meta('icon');
		echo "<!--Css structurual -->";
		echo $html->css('print','stylesheet',array('media'=>'print'));
	
		echo $html->css('screen','stylesheet',array('media'=>'screen, projection'));
		
		echo "<!-- Fin Css structurual -->";
		echo $html->css(array('estilos','dropdown','dropdown.vertical','default','jquery.jcarousel','enruta/skin'));
                echo $javascript->link(array('swfobject','slider/jquery-1.2.3.pack.js','slider/jquery.jcarousel.pack.js',));
	?>
	<!--[if IE]>

                <?php echo $html->css('ie'); ?>
                <?php echo $javascript->link(array('jquery.dropdown')); ?>

        <![endif]-->

        <script type="text/javascript">

        function mycarousel_initCallback(carousel)
        {
            carousel.buttonNext.bind('click', function() {
                carousel.startAuto(0);
            });

            carousel.buttonPrev.bind('click', function() {
                carousel.startAuto(0);
            });

            carousel.clip.hover(function() {
                carousel.stopAuto();
            }, function() {
                carousel.startAuto();
            });
        };

        jQuery(document).ready(function() {
            jQuery('#mycarousel').jcarousel({
                auto: 5,
                wrap: 'last',
                initCallback: mycarousel_initCallback
            });
        });

</script>
<?php $config = $session->read('Config'); ?>
</head>
<body>
	<div class="container main">
		<div class="span-24 header">
                    <div class="span-5"><?php echo $flash->renderSwf('swf/logo.swf',190,205); ?></div>
                    <div class="span-19 last">
                        <div id="banner">
                            <div class="lft">
                                <?php echo $html->image('aviso_publi_superior_izq.jpg'); ?>
                            </div>

                            <div class="lft">
                                <?php echo $this->element('banner_top'); ?>
                            </div>
                        </div>
                        <div class="registro clear rgt">
                              <?php echo $this->element('registro'); ?>
                        </div>
                        <div id="menu">
                                <?php echo $this->element('menu'); ?>
                         </div>
                    </div>
		
		</div>
            <div class="span-24 last">
                <div id="banners">
                    <?php echo $this->element('banners'); ?>
                </div>
            </div>
            <!-- Terminan los banners -->

            <div id="menu-container">
                <?php echo $this->element('menu_left'); ?>
            </div>
            <div class="span-19 last">
                        <div id="buscador">
                            <?php echo $html->image('bar_busqueda_lat_izq.jpg',array('class'=>'lft')); ?>

                            <?php if( array_key_exists('dep_name', $config)): ?>
                            <div id="dep_indicator">Viendo empresas en el departamento de <?php echo $config['dep_name'].' '. $html->link(' [ Volver al mapa ]','/cleardep'); ?></div>
                            <?php else: ?>
                            <div id="dep_indicator"><?php echo  $html->link(' [ Seleccione un departamento ]','/'); ?></div>
                            <?php endif; ?>
                            <?php echo $html->image('bar_busqueda_lat_der.jpg',array('class'=>'rgt')); ?>
                            <div class="rgt">
                                <div class="lft">
                                    <div class="top">
                                    <?php
                                      echo $form->create('Product',array('url'=>array('controller'=>'products','action'=>'buscar')));
                                      echo $form->input('buscar',array('label'=>false));
                                    ?>
                                    </div>
                                </div>
                                <div class="lft top">
                                <?php
                                      echo $form->submit(' ',array('value'=>'','class'=>'buscar'));
                                      echo $form->end();
                                 ?>
                                </div>
                            </div>
                        </div>
                        <?php $session->flash(); ?>
			<?php echo $content_for_layout; ?>
                <div>
                    <?php
                         $config = $session->read('Config');
                        if( isset($config['dep']) ):
                            echo $this->element('noticias');
                        endif;
                    ?>
                </div>
            </div>
            <div class="span-24 last">
            <div id="foot-bar"></div>
		<div id="foot">
                    <?php echo $this->element('menu-footer'); ?>
		</div>
            </div>
	</div>
	<?php echo $cakeDebug; ?>
</body>
</html>